package com.qf.dao;

import com.qf.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {

     List<User> findall();

    User findByUserName(String username);

    int add(User user);

    User findByUserAndPwd(@Param("username") String username,@Param("password") String password);

    User checkEmail(String email);

    User findById(int uid);
}
